/**
 * 详单查询
 */
import request from '@/utils/request';

// 列表数据查询
export function getGrid(query: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/alarm/business/getBusinessGradeDate',
		method: 'post',
		data: query,
		headers: {
			VERSION: 'lishilei',
		},
	});
}

// 查询告警类型比例（环形图）
export function getBusinessAlarmPercent(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/alarm/business/getBusinessAlarmPercent',
		method: 'post',
		data: data,
		headers: {
			VERSION: 'lishilei',
		},
	});
}

// 查询告警等级比例（环形图）
export function getBusinessAlarmLevelPercent(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/alarm/business/getBusinessAlarmLevelPercent',
		method: 'post',
		data: data,
		headers: {
			VERSION: 'lishilei',
		},
	});
}

// 查询告警类型比例和告警等级比例
export function getAramlDetailList(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/alarm/business/getBusinessAlarmList',
		method: 'post',
		data: data,
	});
}

//查询告警类型列表
export function queryBaseIndicatorsList(query: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/alarm/business/queryBaseIndicatorsList',
		method: 'post',
		data: query,
	});
}

//查询告警类型列表
export function getAlarmMergeDownLoad(query: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/ywgzt/business/getAlarmMergeDownLoad',
		method: 'post',
		data: query,
		responseType: 'blob',
	});
}
